
#ifndef GAMEVIEW_H
#define GAMEVIEW_H

#include <BGlyph>
#include <BButton>
#include <BHBoxLayout>
#include <BGraphicWidget>

#include "PolygonItem.h"

class GameView : public BGraphicWidget
{
public:
	GameView(BWidget* parent = 0);
	~GameView();

protected:
	void slotViewFlushed();
	void slotLoadButtonClicked();
	void slotSaveButtonClicked();
	void slotResetButtonClicked();
	void slotSplitButtonClicked();

protected:
	virtual void styleEvent(const BEvent& event);
	virtual void freshEvent(const BEvent& event);
	virtual void paintEvent(const BEvent& event);

private:
	PolygonItem*	_polygonItem;
	BHBoxLayout*	_buttonLayout;
	BButton*		_loadButton;
	BButton*		_saveButton;
	BButton*		_resetButton;
	BButton*		_splitButton;
};

#endif
